<?php
declare(strict_types=1);

namespace App\Resource\LotteryTurntable\Prize;


use Illuminate\Http\Resources\Json\JsonResource;

class PoolResource extends JsonResource
{
    public function toArray($request)
    {
        return [
            "app" => \App\Resource\LotteryTurntable\App\BaseResource::make($this->app),
            "prizes" => RateResource::collection($this->prizes),
        ];
    }
}